package com.hlkj.pay.infrastructure.model.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hlkj.framework.mybatis.core.dataobject.BaseDO;

import com.hlkj.pay.enums.PayOrderEnums;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;


/**
* 订单通知表
* @TableName t_order_notify
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_order_notify")
public class OrderNotifyDO extends BaseDO {
    /**
    * 平台订单号
    */
    @Schema(description = "平台订单号")
    private String payOrderNo;
    /**
    * 商户订单号
    */
    @Schema(description = "商户订单号")
    private String mchOrderNo;
    /**
    * 异步通知地址
    */
    @Schema(description = "异步通知地址")
    private String notifyUrl;
    /**
    * 向下游回调状态, 0 通知失败  1-通知成功'
    */
    @Schema(description = "向下游回调状态, 0 通知失败  1-通知成功'")
    private Integer notifyState;
    /**
    * 
    */
    @Schema(description = "通知时间")
    private Long notifyTime;
    /**
    * 签名方式 RSA2,MD5
    */
    @Schema(description = "签名方式 RSA2,MD5")
    private String signType;
    /**
    * 请求信息
    */
    @Schema(description = "请求信息")
    private String requestParams;
    /**
    * 返回参数
    */
    @Schema(description = "返回参数")
    private String response;
    /**
    * 请求耗时
    */
    @Schema(description = "请求耗时")
    private Integer costTime;
    /**
    * 通知次数
    */
    @Schema(description = "通知次数")
    private Integer notifyNum;
    /**
    * 商户商户号
    */
    @Schema(description = "商户商户号")
    private String sn;
    /**
    * 商户商户号
    */
    @Schema(description = "商户商户号")
    private String appId;
    /**
    * 通知类型 1 订单通知 2 退款通知
     * @see PayOrderEnums.ORDER_STATUS_TYPE
    */
    @Schema(description = "通知类型 1 订单通知 2 退款通知")
    private Integer notifyType;


}
